﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CrystalCore.Mapping;
using Microsoft.Xna.Framework;

namespace CrystalCore
{
    public static class CrystalCoreConversions
    {
        public static Color ColourCodeToColour(ColourCode code)
        {
            return Resources.Colours[code];
        }
        public static Color ElementToColour(Element element)
        {
            return Resources.Colours[ElementToColourCode(element)];
        }

        public static Element ColourCodeToElement(ColourCode code)
        {
            return (Element)((int)code);
        }
        public static ColourCode ElementToColourCode(Element element)
        {
            return (ColourCode)((int)element);
        }
    }
}
